package com.ruima.study.jdk21.jdk13.demo1;

/**
 * <p>
 * <p>jdk10中类型推断</p>
 * <p>
 * <p>Copyright (c) 2024/11/11 16:47, 科大讯飞 All Rights Reserve</p>
 *
 * @author ruima6
 * @version [V1.0]
 */
public class TypeInfer {
    public static void main(String[] args) {
        // jdk10之前
        String oldName = "jack";
        int oldAge = 10;
        long oldMoney = 88888888L;
        Object oldObj = new Object();

        // jdk10之前
        var newName = "jack";
        var newAge = 10;
        var newMoney = 88888888L;
        var newObj = new Object();
    }
}
